home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
7_10.lha
/
7_10
/
po_forget.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
661b
|
27 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <process.h>
include <debug.h> /* DELETE */
/ remove a process from this object's memory
oid process_object::forget(process *tp)
if (debug) /*DELETE*/ cerr << "process_object" << this << "::forget(" << tp << ")\n";
if (!po_link)
return;
for (process_link **lp = &po_link; *lp; )
if ((*lp)->pl_process == tp)
{
process_link *sv = *lp;
*lp = sv->pl_next;
delete sv;
}
else
lp = &(*lp)->pl_next;
if (debug) /*DELETE*/ cerr << "<<<< process_object::forget(" << tp << ")\n";